package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverRewardCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 司机特殊奖励发放
 * </p>
 *
 * @author Dell
 * @since 2022-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DriverSpecialRewardLog对象", description = "司机特殊奖励发放")
public class DriverSpecialRewardLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "司机Id")
    private Long driverId;

    @ApiModelProperty(value = "司机运营区Id")
    private Long driverRegionId;

    @ApiModelProperty(value = "运营区Id")
    private Long cantonId;

    @ApiModelProperty(value = "公司Id")
    private Long companyId;

    @ApiModelProperty(value = "奖励类型 0:other,1:onlineorder[线上订单],2:redpacket[红包],3:recommend[推广],4:first_order[乘客完成首单]")
    private DriverRewardCategory rewardCategory;

    @ApiModelProperty(value = "奖励多少钱")
    private BigDecimal rewardAmount;

    @ApiModelProperty(value = "奖励领取开始时间")
    private Date rewardDistributeStart;

    @ApiModelProperty(value = "奖励领取结束时间")
    private Date rewardDistributeEnd;

    @ApiModelProperty(value = "是否已经领取")
    private Boolean isReceived;

    @ApiModelProperty(value = "领取时间戳")
    private Integer receivedTimestamp;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    private Date updatedAt;


}
